import Reflux from "reflux"
import GUtils from "@/utils";
import BaseAction from "@/base/BaseAction";

const prefix ="/balance/userBalanceDetail/";
const api = {
    search: prefix+"search"
};

const createAction = () => {
    const Action = Reflux.createActions({
        ...BaseAction,

    });

    Action.search.listen(function (so) {
        GUtils.jsonAjax.post(api.search, so).then(this.completed, this.failed);
    });


    return Action;
};

export {api, createAction}